<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"> 

<h:head></h:head> 
<body> 
<ui:composition template="./template.xhtml">
            <ui:define name="content">

<h:form>
<p:panel header="REGISTRAR CLIENTE" style="margin:0 auto; width:976px;"> 
	<h:panelGrid  columns="3" style="border=0;" >
		<p:outputLabel for="txtCodigo" value="CODIGO CLIENTE" style="width:500px"></p:outputLabel>
		<p:inputText size="15" id="txtCodigo" disabled="true" value="Aqui se genera el codigo"></p:inputText>
		<p:message for="txtCodigo"></p:message>
		
		<p:outputLabel  value="DNI" for="txtDni"></p:outputLabel>
		<p:inputText size="15" id="txtDni">
			<f:validateLength minimum="8" maximum="8"></f:validateLength>
		</p:inputText>
		<p:message for="txtDni" display="icon"></p:message>
		
		<p:outputLabel  value="APELLIDO PATERNO" for="txtApePat"></p:outputLabel>
		<p:inputText size="50" id="txtApePat">
			<f:validateLength minimum="2" maximum="20"></f:validateLength>
		</p:inputText>
		<p:message for="txtApePat" display="icon"></p:message>
		
		<p:outputLabel value="APELLIDO MATERNO" for="txtApeMat"></p:outputLabel>
		<p:inputText size="50" id="txtApeMat">
			<f:validateLength minimum="2" maximum="20"></f:validateLength>
		</p:inputText>
		<p:message for="txtApeMat" display="icon"></p:message>
		
		<p:outputLabel value="NOMBRES" for="txtNombre"></p:outputLabel>
		<p:inputText size="50" id="txtNombre">
			<f:validateLength minimum="3" maximum="50"></f:validateLength>
		</p:inputText>
		<p:message for="txtNombre" display="icon"></p:message>
		 <center>
              <p:commandButton id="ingresar" styleClass="ui-priority-primary" value="Guardar"/>
                                           
        </center>
		
	</h:panelGrid>
</p:panel>
</h:form>

     </ui:define>
        </ui:composition>
</body> 
</html>
